<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

class AdminUser extends Model
{
    //表名
    protected $table = 'admin_user';

    //主键
    protected $primaryKey = 'user_id';

    //时间戳
    public $timestamps = false;

    //获取信息
    public static function get_user_info($user_id = null){
    	$user_id = isset($user_id)? $user_id : session('user_id');
    	return self::where(['user_id'=>$user_id])->first();
    }
}
